const KEY = 'my-token-element-pc'

/**
 * 获取token
 * @returns
 */
export const getToken = () => {
  return localStorage.getItem(KEY)
}

/**
 * 设置token
 * @param {*} token
 */
export const setToken = (token) => {
  localStorage.setItem(KEY, token)
}

/**
 * 删除token
 */
export const delToken = () => {
  localStorage.removeItem(KEY)
}
